Platform Explorer / Nuxeo Platform 2023.11

Component com.nuxeo.ecm.arender.content.redaction

Requirements

Resolution Order

289
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0"?>
<component name="com.nuxeo.ecm.arender.content.redaction" version="1.0">

  <extension point="permissions" target="org.nuxeo.ecm.core.security.SecurityService">
    <permission name="Redact" />
  </extension>

  <extension target="org.nuxeo.ecm.core.operation.OperationServiceComponent" point="operations">
    <operation class="com.nuxeo.ecm.arender.core.ARenderRedactCompletion" />
  </extension>

  <extension target="org.nuxeo.runtime.ConfigurationService" point="configuration">
    <documentation>
      Configuration property allowing to override the operation called when completing the redaction.
      The value is empty by default in order to execute the default behavior and have backward compatibility (NEV still calls ARenderRedactCompletion automation).

      If you want to override the redact completion behavior just contribute the following:
      <code>
        <extension target="org.nuxeo.runtime.ConfigurationService" point="configuration">
          <property name="nuxeo.arender.override.redact.completion">CustomARenderRedactCompletion</property>
        </extension>
      </code>
    </documentation>
    <property name="nuxeo.arender.override.redact.completion" />
  </extension>

  <extension target="org.nuxeo.ecm.core.event.EventServiceComponent" point="listener">
    <listener name="annotationRedactListener" class="com.nuxeo.ecm.arender.core.ARenderRedactListener" priority="0">
      <event>commentAdded</event>
      <event>commentRemoved</event>
    </listener>
  </extension>

  <!-- in order to declare audit events in eventTypes directory -->
  <require>org.nuxeo.audit.directoryContrib</require>
  <extension target="org.nuxeo.ecm.platform.audit.service.NXAuditEventsService" point="event">
    <event name="redactionAdded" />
    <event name="redactionRemoved" />
  </extension>

</component>